package mobil.indkoebsliste;

import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;

public class tabbar extends TabActivity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		SQlite temp = new SQlite(this);
		temp.addAlleVareToDao();
		Resources res = getResources();
		TabHost tb = getTabHost();
		TabHost.TabSpec spec;
		Intent inten;

		// mall tab
		inten = new Intent().setClass(this, mall.class);
		spec = tb.newTabSpec("tab2")
				.setIndicator("Vare", res.getDrawable(R.drawable.list))
				.setContent(inten);
		tb.addTab(spec);

		// tourism tab
		inten = new Intent().setClass(this, list.class);
		spec = tb.newTabSpec("tab1")
				.setIndicator("Indkoebskurv", res.getDrawable(R.drawable.mall))
				.setContent(inten);
		tb.addTab(spec);

		tb.setCurrentTab(0);
	}

}
